package com.glx.test.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Component
@Data
// Problem.java
public class Problem {
    private Long id;
    private String title;
    private String description;
    private DifficultyEnum difficulty;
    private Boolean has_limits;
    private BigDecimal time_limit;
    private Integer memory_limit;
    private ProblemType type;
    private Long group_id;
    private Long creator_id;
    private ReviewStatus review_status;
    private LocalDateTime created_at;
    private LocalDateTime updated_at;
    private Integer status;

    // 枚举类定义（需与数据库枚举值匹配）
    public enum DifficultyEnum {
        EASY, MEDIUM, HARD
    }

    public enum ProblemType {
        PUBLIC, GROUP
    }

    public enum ReviewStatus {
        PASS, REVIEWING, FAIL
    }

    // Getter & Setter 省略（需补充）
}
